<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
$(function(){
	var status = $("#status").val();
	var studentId = $("#studentId").val();
	var jStudentId = $("#jStudentId").val();
	if(status==0){
		$("#doReading").hide();
	}
	if(studentId!=jStudentId){
		$("#doReading").hide();
	}
	
	$("#saveButton").click(function(){
		var id = $("#id").val();
		$.ajax({
			type:'POST',
			url:'mailSystemUpdata.action',
			data:{id:id,status:0},
			datatype:'json',
			success:function(msg){
				if(msg.status=="200"){
					window.location.href="homePage.action";//mailSystemListDatagrid.action
				}else{
					$.messager.alert("提示","出错了");
				}
			}
		});
	});
});